﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RepairRecord.aspx.cs" Inherits="WebUI.LabManage.RepairRecord" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" ID="PageManager1" AutoSizePanelID="Panel1" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" Layout="Anchor" ShowHeader="true" Title="设备维修记录">
        <Items>
            <ext:Form ID="Form2" runat="server" LabelWidth="90px" Height="74px" EnableBackgroundColor="true"
                ShowHeader="false" ShowBorder="true" BodyPadding="10px" AutoWidth="true">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click" ValidateForms="Form2">
                            </ext:Button>
                            <ext:ToolbarSeparator ID="ToolbarSep1" runat="server">
                            </ext:ToolbarSeparator>
                            <ext:Button runat="server" ID="bnReset" Text="重置" Icon="ArrowIn" OnClick="bnReset_Click">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Rows>
                <ext:FormRow>
                <Items>
                <ext:TextBox runat="server" ID="tb_allower" Label="批准人" TabIndex="2"></ext:TextBox>
                <ext:TextBox runat="server" ID="tb_RepairCause" Label="报修原因" TabIndex="3"></ext:TextBox>
                <ext:DatePicker runat="server" ID="dp_dateUP" Label="报修日期" LabelSeparator=" ≥" TabIndex="4"></ext:DatePicker>
                <ext:DatePicker runat="server" ID="dp_dateDOWN" Label="报修日期" LabelSeparator=" ≤" TabIndex="5"></ext:DatePicker>
                </Items>
                </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Grid runat="server" ID="Grid1" AnchorValue="100% -78px" ShowHeader="false"
                EnableBackgroundColor="true" EnableRowNumber="true" AllowPaging="true" OnPageIndexChange="Grid1_PageIndexChange"
                DataKeyNames="id,EID" PageSize="25" >
                <Columns>
                <ext:BoundField DataField="Equipment.propertyNO" HeaderText="资产编号" Width="150px" />
                <ext:BoundField DataField="Equipment.Name" HeaderText="设备名称" Width="160px" />
                <ext:BoundField DataField="Equipment.typeParam.value" HeaderText="设备类型" Width="80px" />
                <ext:BoundField DataField="RepairTypeParam.value" HeaderText="维修类型" />
                <ext:BoundField DataField="budget" DataFormatString="{0:C}" HeaderText="维修预算"  />
                <ext:BoundField DataField="RepairCause"  HeaderText="报修原因" />
                <ext:BoundField DataField="reportDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="填报日期"  />
                <ext:BoundField DataField="allower"  HeaderText="填报人" />
                <ext:BoundField DataField="repairer"  HeaderText="维修人" />
                <ext:BoundField DataField="timeDay" DataFormatString="{0} 天"  HeaderText="维修时长" />
                <ext:BoundField DataField="cost"  DataFormatString="{0:C}" HeaderText="维修支出" />
                <ext:BoundField DataField="result" HeaderText="维修结果" />
                <ext:BoundField DataField="returnDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="反馈日期" />
                <ext:BoundField DataField="checker" HeaderText="验收人" />
                <ext:CheckBoxField Width="76px" RenderAsStaticField="true" DataField="isReturn" HeaderText="反馈结果" />
                </Columns>
                </ext:Grid>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
